<?php

declare(strict_types=1);

/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use function Hyperf\Support\env;

return [
    'default' => [
        // 密钥
        'key'       => env('TOKEN_KEY', 'BgCYelhLFAN9a54u1tyPk67cMRZs3vni'),
        // 缓存有效期 0表示永久缓存
        'expire'    => (int)env('TOKEN_EXPIRE', 7200),
        // 缓存有效期 0表示永久缓存
        'sso'    => (bool)env('TOKEN_SSO', true),
    ]
];
